#ifndef __CONFIG_FILE_H__
#define __CONFIG_FILE_H__

#include <iostream>
#include <stdio.h>
#include <stdlib.h>

/* Internal states that used in state machine */
#define CONFIG_STATE_1         1 /*  state1 just after '[' operator from the start state*/
#define CONFIG_STATE_2         2 /*  state for the first argument there.                   */
#define CONFIG_STATE_3         3
#define CONFIG_STATE_4         4
#define CONFIG_STATE_5         5
#define CONFIG_STATE_6         6
#define CONFIG_STATE_7         7
#define CONFIG_STATE_ERROR   100
#define CONFIG_STATE_START   101

/* functions */
int config_file_open(const char *  /*file_name*/ );
int config_file_parse();
int config_file_session_into( const char * /* session_name */);
const char* config_file_get_current_session ();
const char* config_file_get_key_value(const char*  /*keyword*/ );
int config_file_add_new_session(const char*/*session_name */);
int config_file_add_entry( const char* /* key */, const char* /* value */);
int config_file_write_to_file(const char* /* file_name*/);

int config_file_dinit();

#endif /* ENDIF __CONFIG_FILE_H__ */
